﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.Data

{
    [Serializable]
    public abstract class BCMT3DMS:BCType
    {
        public BCMT3DMS()
            : base()
        {

        }


        public override void MapToModflow(List<double> stressPeriods, List<ValueResult> ijkList, ModFlow.Domain.DomainLayer.ModFlowData mf, FeatureObject owner)
        {
            return;
        }


        public abstract void MapToMT3DMs(List<double> stressPeriods, MT3DMS.DomainLayer.MT3DMSData data, CoverageSetup setup, FeatureObject fo);

        public virtual void OnSpeListChanged(List<string> lst)
        { 

        }
        /// <summary>
        /// 判断污染物数据是否全部为0,如果为0,则返回true
        /// </summary>
        /// <param name="arry"></param>
        /// <returns></returns>
        public  bool isZearo(List<MultiValue> arry)
        {
            bool b = true;
            for (int i = 0; i < arry.Count; i++)
            {
                if (arry[i].DateDatas.BCDatas.Count > 0)
                {
                    for (int j = 0; j < arry[i].DateDatas.BCDatas.Count; j++)
                    {
                        if (arry[i].DateDatas.BCDatas[j].Value == 0)
                        {

                        }
                        else
                        {
                            b = false;
                            break;
                        }
                    }
                }
                else
                {
                    if (arry[i].DateDatas.ConstData != 0)
                    {
                        b = false;
                    }
                }
            }
            return b;
        }

    }
}
